package com.swx.identityservice.dtos.scbpuser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("输出用户Dto")
public class UserListOutputDto {
    @ApiModelProperty("用户集合")
    private List<UserOutputDto> users;
    @ApiModelProperty("用户总数")
    private long total;

    public void addUser(UserOutputDto userOutputDto) {
        if (users == null)  users = new ArrayList<>();
        this.users.add(userOutputDto);
    }
}
